package com.example.robertluozizhao.baseframedemo.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.example.robertluozizhao.baseframedemo.interf.BaseViewInterface;

import butterknife.ButterKnife;

/**
 * Created by robert.luozizhao on 2017/9/1 0001.
 */

public class BaseActivity extends AppCompatActivity implements BaseViewInterface{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);

        // 加载布局
        if (getLayout()!=0) {
            setContentView(getLayout());
        }
        ButterKnife.bind(this);// 牛油刀

        // 界面初始化，界面数据初始化
            initView();
            initData();




    }


    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }


    public int getLayout() {
        return 0;
    }
}
